public class Test {
    public static void main(String[] args) {
        Dog dog=new Dog();
        System.out.println(dog.name = "旺财");
        System.out.println(dog.age = 6);
        System.out.println(dog.color = "black");
        dog.eat();
        System.out.println(dog.a);
        Cat cat=new Cat();
        System.out.println(cat.name = "咪咪");
        System.out.println(cat.age = 7);
        System.out.println(cat.color = "white");
        cat.eat();
    }
}
